
using System;

namespace LightScribe
{	
	public class PrinterLock : IDisposable
	{
		private IntPtr printer;
		internal PrinterLock(IntPtr printer)
		{
			Interop.DiscPrinter_AddExclusiveUse(this.printer = printer);
		}
		
		public void Dispose()
		{
			Interop.DiscPrinter_ReleaseExclusiveUse(printer);
		}
	}
}
